﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace OrderService
{
    [DataContract]
    public class Payment
    {
        [DataMember]
        public int TransactionId
        {
            get;
            set;
        }

        [DataMember]
        public string CardNumber
        {
            get;
            set;
        }

        [DataMember]
        public Decimal Amount
        {
            get;
            set;
        }

        [DataMember]
        public bool Processed
        {
            get;
            set;
        }

        public Payment(int transactionId, string cardNumber, decimal amount)
        {
            TransactionId = transactionId;
            CardNumber = cardNumber;
            Amount = amount;
            Processed = false;
        }
    }
}
